﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [Table("sys_menu_items_list"), DataContract]
    public class MenuItemsList
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember]
        [Column("menu_item_seq")]
        public int MenuItemId { get; set; }

        [DataMember]
        [Column("menu_item_code")]
        public string Code { get; set; }

        [DataMember]
        [Column("menu_item_name")]
        public string Name { get; set; }

        [DataMember]
        [Column("upper_menu_item_seq")]
        public int? UpperMenuItemId { get; set; }

        [DataMember]
        [Column("menu_item_path")]
        public string Path { get; set; }

        [DataMember]
        [Column("menu_item_target")]
        public string Target { get; set; }

        [DataMember]
        [Column("system_id")]
        public string SystemId { get; set; }

        [DataMember]
        [Column("icon")]
        public string Icon { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof (Resources.ScPermissionsResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof (Resources.ScPermissionsResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof (Resources.ScPermissionsResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof (Resources.ScPermissionsResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof (Resources.ScPermissionsResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    }
}